

var myDate=new Date("2017/8/28");

var d = myDate.getDate();
var m = myDate.getMonth();
var y = myDate.getFullYear();

console.log(new Date(y,m,d))